
export const getCount=function(state){
			return state.count = state.count < 10 ? "0" + state.count : state.count
		}
export const getNavTid=function (state){
			return state.Navtid
		}
export const getCurTid=function(state){
			let partitionList = window.__INITIAL_STATE__.reduxAsyncConnect.partitionList
			const hasCon = partitionList[state.curTid]
			if(!hasCon) {
				const keyArr = Object.keys(partitionList)
				//核心代码:tid==obj.tid
				for(let i = 0, len = keyArr.length; i < len; i++) {
					//一定要清楚,你访问的元素是什么
					const tmpArr = partitionList[keyArr[i]]
					for(let j = 0; j < tmpArr.length; j++) {
						//核心代码
						if(tmpArr[j].tid == state.curTid) {
							return state.curTid = keyArr[i]
							//return 1111
						}
					}
				}
			}else{
				return state.curTid
			}
		}